<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<css file="__STATIC__/hdjs/hdjs.css"/>
	<js file="__STATIC__/hdjs/hdjs.min.js"/>
</head>
<body>
	
	<div class="hd-menu-list">
	    <ul>
	        <li class="active"><a href="#">栏目列表</a></li>
	        <li><a href="{|U:'Category/add'}">添加栏目</a></li>

	        <li><a href="{|U:'Category/cache'}">更新栏目缓存</a></li>
	    </ul>
	</div>
	<form action="{|U:'Category/sort'}" method="post">
	<table class="hd-table hd-table-list">
	    <thead>
	    <tr>
	    	<td>排序</td>
	        <td>CID</td>
	        <td>栏目名</td>
	        <td>显示</td>
	        <td>列表静态</td>
	        <td>文章静态</td>
	        <td>操作</td>
	    </tr>
	    </thead>
	    <tbody>
	    
	    <foreach from="$category" key="$k" value="$c">
		    <tr>
		    	<td><input type="text" class="hd-w30" name="sort[]" value="{$c.sort}"><input type="hidden" name="cid[]" value="{$c.cid}"></td>
		        <td>{$c['cid']}</td>
		        <td>
		            {$c['_name']}
		        </td>
		        <td>{$c['is_show']}</td>
		        <td>{$c['is_listhtml']}</td>
		        <td>{$c['is_archtml']}</td>
		        <td class="hd-w100">
		            <a href="{|U:'Category/edit',array('cid'=>$c['cid'],'pid'=>$c['pid'])}">修改</a> |
		            <a href="{|U:'Category/add',array('pid'=>$c['cid'])}">添加</a>
		        </td>
		    </tr>
		</foreach>

	    </tbody>
	</table>
	<input type="submit" value="排序" class="hd-btn">
	</form>
</body>
</html>